package edu.xidian.bdilab.jrbigdata.controller.bank;

import edu.xidian.bdilab.jrbigdata.controller.response.ResponseResult;
import edu.xidian.bdilab.jrbigdata.service.bank.ProductApplyInfo.ProductApplyInfoService;
import edu.xidian.bdilab.jrbigdata.service.bank.productApplyCheck.ProductApplyService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhangmmm
 * @create 2020-12-04 18:56
 */
@CrossOrigin
@RestController
@Api(tags = {"ProductApplyInfo-查看产品申请详细信息"})
public class ProductApplyInfoController {
    @Autowired
    ProductApplyInfoService productApplyInfoService;
    /*
     * 查看产品申请详细信息
     */
    @PostMapping(value = "bank/getProductApplyInfo")
    ResponseResult productApply(@RequestParam @ApiParam(value = "银行名称") String bankName,
                                @RequestParam(defaultValue = "1")@ApiParam(value = "页码") int pageNum,
                                @RequestParam(defaultValue = "10")@ApiParam(value = "每页记录数") int pageSize){
        ResponseResult responseResult = productApplyInfoService.getProductApplyInfo(bankName,pageNum,pageSize);
        return responseResult;
    }


}
